package com.iamteer.service.impl;

import com.iamteer.dao.IEmployeeDao;
import com.iamteer.dao.impl.EmployeeDao;
import com.iamteer.entity.Employee;
import com.iamteer.service.IEmployeeService;
import com.iamteer.utils.PageBean;
/**
 * 3. 业务逻辑层，实现
 * @author Chuck
 *
 */
public class EmployeeService implements IEmployeeService{
	//创建 Dao 实例
	private IEmployeeDao employeeDao = new EmployeeDao();
	
	@Override
	public void getAll(PageBean<Employee> pb) {
		try {
			employeeDao.getAll(pb);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

}
